luci-app-acl: also grand read access to luci-mod-status-index
authorFlorian Eckert <[email protected]>
Tue, 3 Dec 2024 14:19:25 +0000 (15:19 +0100)
committerPaul Donald <[email protected]>
Thu, 6 Mar 2025 17:06:37 +0000 (11:06 -0600)
If a new user is created, 'luci-mod-status-index' should also be selected, as
this is the start page after login. If a user is created without this, only
a 404 is displayed.

Signed-off-by: Florian Eckert <[email protected]>
applications/luci-app-acl/htdocs/luci-static/resources/view/system/acl.js

index f62f17fd4ddf6b94a23cf7cd0ef902ad32d30d4d..3762575c85c333abca1c682249c88db553c73717 100644 (file)
@@ -98,7 +98,7 @@ var cbiACLSelect = form.Value.extend({
                ]);
 
                Object.keys(aclList).sort().forEach(function(aclGroupName) {
-                       var isRequired = (aclGroupName == 'unauthenticated' || aclGroupName == 'luci-base'),
+                       var isRequired = (aclGroupName == 'unauthenticated' || aclGroupName == 'luci-base' || aclGroupName == 'luci-mod-status-index'),
                            isReadable = (readMatches[0].test(aclGroupName) && !readMatches[1].test(aclGroupName)) || null,
                            isWritable = (writeMatches[0].test(aclGroupName) && !writeMatches[1].test(aclGroupName)) || null;